home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / mac / developm / language / j32.sit / j.rsrc / TEXT_102_Grammar -- Introduction.txt < prev    next >
Encoding:
Text File  |  1991-06-13  |  1.5 KB  |  34 lines

  1. GRAMMAR -- INTRODUCTION
  2.  
  3. The following sentences illustrate the six parts of speech:
  4.  
  5.       fahrenheit=. 50
  6.       (fahrenheit-32)*5%9
  7. 10
  8.       prices=. 3 1 4 2
  9.       orders=. 2 0 2 1
  10.       orders * prices
  11. 6 0 8 2
  12.       +/orders*prices
  13. 16
  14.       +/\1 2 3 4 5
  15. 1 3 6 10 15
  16.       bump=. +&1
  17.       bump prices
  18. 4 2 5 3
  19.  
  20.           PARTS of SPEECH
  21.    50 fahrenheit      Nouns/Pronouns
  22.    + ΓÇô * % bump          Verbs/Proverbs
  23.    / \             Adverbs
  24.    &                           Conjunction
  25.    ( )                         Punctuation
  26.    =.                          Copula
  27.  
  28. Verbs act upon nouns to produce noun results; the nouns to which a particular verb applies are called its arguments. A verb may have two distinct (but usually related) meanings according to whether it is applied to one argument (to its right), or to two arguments (left and right). For example, 2%5 yields 0.4, and %5 yields 0.2.
  29.  
  30. An adverb acts upon a single noun or verb to its left. For example, +/ is a (derived) verb (which might be called plus over) that sums an argument list to which it is applied, and */ yields the product of a list. A conjunction applies to two arguments, which may be either nouns or verbs.
  31.  
  32. Punctuation is provided by paired parentheses that specify the sequence of execution as in elementary algebra.
  33.  
  34. The word =. behaves like the copulas "is" and "are" and is read as such, as in "area is 3 times 4" for area=. 3*4. The name area thus assigned is a pronoun and, as in English, it plays the role of a noun. Similar remarks apply to names assigned to verbs, adverbs, and conjunctions. Entry of any name alone displays its value.